package com.zheng.sms.rpc.service.impl;

import com.aeye.mbr.common.plugin.mapper.BaseServiceImpl;
import com.aeye.mbr.upms.dao.model.SmsLog;
import com.zheng.sms.rpc.mapper.SmsLogMapper;
import com.zheng.sms.rpc.service.SmsLogService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

public class SmsLogServiceImpl extends BaseServiceImpl<SmsLog> implements SmsLogService {

    private static Logger log = LoggerFactory.getLogger(SmsLogServiceImpl.class);

    @Autowired
    SmsLogMapper smsLogMapper;

    public int updateLogStatus(Long logId,Integer status){
        SmsLog smsLog = new SmsLog();
        smsLog.setId(logId);
        smsLog.setStatus(status);
        return smsLogMapper.updateByPrimaryKeySelective(smsLog);
    }

}
